package pATT.DataSetsGenerator.dataSetsGenerator.attribute.implement;

import java.util.Vector;

public abstract class Attribute {
    private final static String MISSING_VALUE = "?";
	private String name = "";
	private String type = "";
	private boolean isNull = false;
	protected Vector values = new Vector();
	
	@SuppressWarnings("unchecked")
	public Attribute(boolean null1, String name, String type) {
		isNull = null1;
		this.name = name;
		this.type = type;
		if(isNull())
			values.addElement(MISSING_VALUE);
	}

	public boolean isNull() {
		
		return isNull;
	}

	public String getName() {
		return name;
	}

	public String getType() {
		return type;
	}

	public Vector getValues(){
		return values;
	}
}
